<%@include file="../header.jsp"%>

<!-- end page-heading //sampai sini-->

<div class="clear"></div>

<!-- start content-outer -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">


        <div id="page-heading"><h1>Ubah Publikasi HaKI</h1></div>


        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <!--  start content-table-inner -->
                    <div id="content-table-inner">

                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr valign="top">
                                <td>
                                    <script>
                                        function validateForm()
                                        {                                            
                                                                                        
                                            var judul = true, statusKemajuan= true, noPaten= true, tanggalMulai= true;
                                            
                                            if(document.frm.judul.value=="")
                                            {                                                
                                                document.getElementById("judul_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Judul Publikasi HaKI Belum Terisi.</div>";
                                                judul = false;
                                            } else {
                                                document.getElementById("judul_error").innerHTML="";       
                                            }
                                            
                                            if(document.frm.statusKemajuan.value=="")
                                            {                                                
                                                document.getElementById("statusKemajuan_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Tempat Publikasi HaKI Belum Terisi.</div>";
                                                statusKemajuan= false;
                                            } else {
                                                document.getElementById("statusKemajuan_error").innerHTML="";
                                            }                                                   
                                            
                                            if(document.frm.noPaten.value=="")
                                            {
                                                document.getElementById("noPaten_error").innerHTML="<div class='error-left'></div><div class='error-inner'>No. Publikasi HaKI Belum Dipilih.</div>";
                                                noPaten= false;
                                            } else {
                                                document.getElementById("noPaten_error").innerHTML="";
                                            }    
                                            
                                            if(document.frm.tanggalMulai.value=="")
                                            {
                                                document.getElementById("tanggalMulai_error").innerHTML="<div class='error-left'></div><div class='error-inner'>Tanggal Publikasi HaKI Belum Dipilih.</div>";
                                                tanggalMulai= false;
                                            } else {
                                                document.getElementById("tanggalMulai_error").innerHTML="";
                                            }
                                            
                                            if(judul && statusKemajuan && noPaten && tanggalMulai){
                                                return true;
                                            }else{
                                                return false;
                                            }
        
                                        }
                                    </script>

                                    <!-- start id-form -->
                                    <form name="frm" method="post" action="ubahPublikasiHaki?status=submit&&noHaki=${pubHaki.idKaryaHaki}" onsubmit="return validateForm()">
                                        <table border="0" cellpadding="5" cellspacing="15"  id="id-form">

                                            <tr>
                                                <th width="280" valign="top">Judul Karya <font color="red">*</font></th>
                                                <td width="15">:</td>
                                                <td><textarea name="judul" cols="" rows="" class="form-textarea" id="judul">${pubHaki.judulPatenHaki}</textarea></td>
                                                <td id="judul_error"></td>
                                            </tr>
                                            <tr>
                                                <th valign="top">Status Kemajuan <font color="red">*</font></th>
                                                <td width="15">:</td>
                                                <td>
                                                    <select name="statusKemajuan" id="statusKemajuan" class="styledselect_form_1">
                                                        <option value="">- Pilih Status Kemajuan -</option>
                                                        <option value="Terdaftar" 
                                                                <c:if test="${(pubHaki.statusKemajuan == 'Terdaftar')}">                
                                                                        selected="selected"
                                                                    </c:if>
                                                                >- Terdaftar -</option>
                                                        <option value="Mendapatkan Sertifikat"
                                                                <c:if test="${(pubHaki.statusKemajuan == 'Mendapatkan Sertifikat')}">                
                                                                        selected="selected"
                                                                    </c:if>
                                                                >- Mendapatkan Sertifikat -</option>
                                                    </select>
                                                </td>
                                                <td id="statusKemajuan_error"></td>
                                            </tr>
                                            <tr>
                                                <th valign="top">Nomor Paten <font color="red">*</font></th>
                                                <td width="15">:</td>
                                                <td><input type="text" name="noPaten" id="noPaten" class="inp-form" value="${pubHaki.noPaten}"/></td>
                                                <td id="noPaten_error"></td>
                                            </tr>
                                            <tr>
                                                <th valign="top">Tanggal Paten <font color="red">*</font></th>
                                                <td width="15">:</td>
                                                <td>
                                                    <input type="text" name="tanggalMulai" class="inp-form" id="tanggalMulai" value="${pubHaki.tanggalPendaftaranPaten}" READONLY/>
                                                </td>
                                                <td id="tanggalMulai_error"> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>&nbsp;</th>
                                                <td></td>
                                                <td valign="top">
                                                    <input type="submit" value="" class="form-simpan" />
                                                    <a href="tampilDaftarHaki"><input type="button" value="" class="form-batal"  /></a>
                                                </td>
                                                <td></td>
                                            </tr>

                                        </table>
                                    </form>
                                    <!-- end id-form  -->

                                </td>

                                <td>

                                    <!--  start related-activities -->
                                    <div id="related-activities">

                                        <!--  start related-act-top -->
                                        <div id="related-act-top">
                                            <img src="images/forms/header_related_act.gif" width="271" height="43" alt="" />
                                        </div>
                                        <!-- end related-act-top -->

                                        <!--  start related-act-bottom -->
                                        <div id="related-act-bottom">

                                            <!--  start related-act-inner -->
                                            <div id="related-act-inner">

                                                <!--<div class="left"><a href=""><img src="images/forms/icon_plus.gif" width="21" height="21" alt="" /></a></div>-->
                                                <div class="right">
                                                    <h5>Pengisian Data </h5>
                                                    Silakan isi data dengan teliti dan benar. Kolom yang bertanda * wajib diisi.
                                                    <!--<ul class="greyarrow">
                                                        <li><a href="">Click here to visit</a></li> 
                                                        <li><a href="">Click here to visit</a> </li>
                                                    </ul>-->
                                                </div>

                                                <div class="clear"></div>
                                                <div class="lines-dotted-short"></div>

                                                <!--<div class="left"><a href=""><img src="images/forms/icon_minus.gif" width="21" height="21" alt="" /></a></div>-->

                                            </div>
                                            <!-- end related-act-inner -->
                                            <div class="clear"></div>

                                        </div>
                                        <!-- end related-act-bottom -->

                                    </div>
                                    <!-- end related-activities -->

                                </td>
                            </tr>
                            <tr>
                                <td><img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                                <td></td>
                            </tr>
                        </table>

                        <div class="clear"></div>


                    </div>
                    <!--  end content-table-inner  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>

        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->



<div class="clear">&nbsp;</div>

<%@include file="../footer.jsp"%>